package com.sys.ware.feign;

import com.sys.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("mall-product")
public interface ProductFeignService {

    /**
     * 1.通过网关调用
     * @FeignClient("mall-gateway")
     * /api/product/skuinfo/info/{skuId}
     * 2.直接调用服务
     * @FeignClient("mall-product")
     * /product/skuinfo/info/{skuId}
     */
    @RequestMapping("/product/skuinfo/info/{skuId}")
    public R info(@PathVariable("skuId") Long skuId);
}
